package be.bonamis.umpire.ui.client.places;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class LoginPlace extends Place {

    public LoginPlace() {
    }

    public String getToken() {
	return "";
    }

    public static class Tokenizer implements PlaceTokenizer<LoginPlace> {
	@Override
	public LoginPlace getPlace(String token) {
	    return new LoginPlace();
	}

	@Override
	public String getToken(LoginPlace place) {
	    return place.getToken();
	}
    }

    @Override
    public boolean equals(Object place) {
	if (place instanceof LoginPlace)
	    return getToken().equals(((LoginPlace) place).getToken());
	else
	    return false;
    }

}
